\documentclass[ignorenonframetext,handout]{beamer} 
\input{main.tex}